//配置中心所有的api

import { get, post } from "@/utils/http";

//场景配置
export const sceneListAPI = (params) => post("/manager/config/scene/list", params);
export const sceneGetAPI = (params) => get("/manager/config/scene/detail", params);
export const sceneDeleteAPI = (params) => get("/manager/config/scene/remove", params);
export const sceneUpdateAPI = (params) => post("/manager/config/scene/update", params);

//指标
export const itemListAPI = (params) => post("/manager/config/item/list", params);
export const itemGetAPI = (params) => get("/manager/config/item/detail", params);
export const itemDeleteAPI = (params) => get("/manager/config/item/remove", params);
export const itemUpdateAPI = (params) => post("/manager/config/item/update", params);
export const itemFetchallSimplyAPI = (params) => get("/manager/config/item/list_all_tiny_item", params);
export const indexSaveOrderApi = (params) => post("/manager/config/item/save_order", params);

export const getAutoPreConditionsApi = (params) => get("/manager/config/item/getAutoPreConditions", params); //获取自动化前置条件枚举
export const getRiskNameApi = (params) => get("/manager/config/item/getRiskName", params); //获取自动化前置条件枚举

//场景管理
export const sceneOptionListAPI = (params) => post("/manager/config/scene_option/list", params);
export const sceneOptionGetAPI = (params) => get("/manager/config/scene_option/detail", params);
export const sceneOptionDeleteAPI = (params) => get("/manager/config/scene_option/remove", params);
export const sceneOptionUpdateAPI = (params) => post("/manager/config/scene_option/update", params);
export const monitorAssetslistApi = (params) => get("/service/seceval/specialRisk/monitorAssetslist", params); //获取监控中资产信息
export const saveMonitorRiskListApi = (params) => post("/service/seceval/specialRisk/saveMonitorRiskList", params); //保存专项治理结果接口
export const getMonitorRiskErrorAssestApi = (params) =>
  get("/service/seceval/specialRisk/getMonitorRiskErrorAssest", params); //获取专项治理失败域名信息

//标签管理
export const tagListApi = (params) => post("/manager/config/tag/list", params);
export const tagSaveApi = (params) => post("/manager/config/tag/save", params);
export const tagDeleteApi = (params) => post("/manager/config/tag/delete", params);
export const tagAllApi = (params) => get("/manager/config/tag/all", params); //获取所有标签
export const tagAllTagsApi = (params) => post("/manager/config/tag/allTags", params); //获取所有标签
export const assetTagFlagApi = (params) => get("/manager/config/tag/assetTagFlag", params); //检测标签是否和资产关联
export const getItemSceneTypeApi = (params) => get("/manager/config/item/getItemSceneType", params); //获取指标来源类型
